package com.zx.idc.backend.gui.api.ws.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by hasee on 2019/2/12.
 */
@ConfigurationProperties(prefix = "system.webservice")
@Component
public class WebServiceProperties {
    private String externalAddress;
    private String path;
    private Map<String, String> serviceAddressMap = new HashMap<>();

    private String userPassword;

    private String authenticationKey;

    private String version;

    private String schemaPath;

    private String idcHome;

    private String monitorLogDir;

    private String filterLogDir;

    private String hotUrlDir;

    private String hotDomainDir;

    private String hotIpDir;

    public String getHotUrlDir() {
        return hotUrlDir;
    }

    public WebServiceProperties setHotUrlDir(String hotUrlDir) {
        this.hotUrlDir = hotUrlDir;
        return this;
    }

    public String getHotDomainDir() {
        return hotDomainDir;
    }

    public WebServiceProperties setHotDomainDir(String hotDomainDir) {
        this.hotDomainDir = hotDomainDir;
        return this;
    }

    public String getHotIpDir() {
        return hotIpDir;
    }

    public WebServiceProperties setHotIpDir(String hotIpDir) {
        this.hotIpDir = hotIpDir;
        return this;
    }

    public String getIdcHome() {
        return idcHome;
    }

    public WebServiceProperties setIdcHome(String idcHome) {
        this.idcHome = idcHome;
        return this;
    }

    public String getMonitorLogDir() {
        return monitorLogDir;
    }

    public WebServiceProperties setMonitorLogDir(String monitorLogDir) {
        this.monitorLogDir = monitorLogDir;
        return this;
    }

    public String getFilterLogDir() {
        return filterLogDir;
    }

    public WebServiceProperties setFilterLogDir(String filterLogDir) {
        this.filterLogDir = filterLogDir;
        return this;
    }

    public String getSchemaPath() {
        return schemaPath;
    }

    public WebServiceProperties setSchemaPath(String schemaPath) {
        this.schemaPath = schemaPath;
        return this;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getExternalAddress() {
        return externalAddress;
    }

    public void setExternalAddress(String externalAddress) {
        this.externalAddress = externalAddress;
    }

    public Map<String, String> getServiceAddressMap() {
        return serviceAddressMap;
    }

    public void setServiceAddressMap(Map<String, String> serviceAddressMap) {
        this.serviceAddressMap = serviceAddressMap;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public WebServiceProperties setUserPassword(String userPassword) {
        this.userPassword = userPassword;
        return this;
    }

    public String getAuthenticationKey() {
        return authenticationKey;
    }

    public WebServiceProperties setAuthenticationKey(String authenticationKey) {
        this.authenticationKey = authenticationKey;
        return this;
    }

    public String getVersion() {
        return version;
    }

    public WebServiceProperties setVersion(String version) {
        this.version = version;
        return this;
    }
}
